<?php
/**
 * File: cmsgoods.php.
 * Author: caoqicheng@haibao.com
 * Editor: PhpStorm
 * Date: 17/2/7 上午10:45
 * Brief:
 */
namespace haibao\jiepai\model\data\goods;

class CmsGoods extends \haibao\jiepai\model\data\Base{
	
	/**
	 * 发布状态 0-未发布，1-已发布
	 */
	const STATUS_DIS = 0;
	const STATUS_IS = 1;
	
	/**
	 * 是否被使用 1 已使用 0 未使用
	 */
	const IS_USED = 1;
	const DIS_USED = 0;
	
	/**
	 * 链接是否需要翻墙 0 不需要  1需要
	 */
	const IS_BLOCKED= 1;
	const DIS_BLOCKED = 0;
	
	/**
	 * 删除时置为-1，默认是0
	 * 是否是删除
	 */
	const FLAG_IS = 0;
	const FLAG_DEL = -1;
	
	public $GoodsName;

	public $Price;
	
	public $GoodsLink;
	
	public $GoodsTags;
	
	public $GoodsBrand;

	public $FileID;
	
	public $CmsFileID;
	
	public $IsOriginal;
	
	public $CreateTime;
	
	public $PublishTime;
	
	public $Currency;
	
	public $StyleList;
	
	public $CategoryList;
	
	public $Flag;
	
	public $Status;
	
	public $EditorID;
	
	public $IsUsed;
	
	public $IsBlocked;
	
	public $SceneList;
	/**
	 * 商品标签品牌名称
	 */
	public $BrandTagName;
	
	public function __construct(){
		parent::__construct();
		$this->setColumnName('Id', 'GoodsID');
		
		$this->stringField('GoodsName', 'GoodsName');
		$this->stringField('Price', 'Price');
		$this->stringField('GoodsLink', 'GoodsLink');
		$this->stringField('GoodsTags', 'GoodsTags');
		$this->intField('GoodsBrand', 'GoodsBrand');
		$this->intField('FileID', 'FileID');
		$this->intField('CmsFileID', 'CmsFileID');
		$this->intField('IsOriginal', 'IsOriginal');
		$this->dateField('CreateTime', 'CreateTime');
		$this->dateField('PublishTime', 'PublishTime');
		$this->stringField('Currency', 'Currency');
		$this->stringField('SceneList', 'SceneList');
		$this->stringField('StyleList', 'StyleList');
		$this->stringField('CategoryList', 'CategoryList');
		$this->intField('Flag', 'Flag');
		$this->intField('Status', 'Status');
		$this->intField('EditorID', 'EditorID');
		$this->intField('IsUsed', 'IsUsed');
		$this->intField('IsBlocked', 'IsBlocked');
		
		$this->setTableName('cms_goods');
	}
}